<?php
/**
 * Project: HTPHouDuan
 * User: xilibo
 * Date: 2018/1/24
 */

namespace app\common\model;

use think\Model;
use think\Db;

/**
 * 站点节点模型
 */
class SiteNodeModel extends BaseModel
{
    protected $tableName = 'site_node';

    protected $hidden = ['node_key'];

    public function getAllNodes()
    {
        return $this->getList(null, null, 'id DESC', null, 65535);
    }

    public function getNodeKey($where)
    {
        $nodeRow = $this->getRow($where);

        return $nodeRow['node_key'];
    }

    public function validateAdmin($decryptedParams)
    {
        
    }

    public function validateSuperAdmin($decryptedParams)
    {
        
    }
}
